//
//  DongTaiViewController.m
//  runtime
//
//  Created by dihuijun on 17/3/29.
//  Copyright © 2017年 Cycle. All rights reserved.
//

#import "DongTaiViewController.h"
#import "people.h"
@interface DongTaiViewController ()

@end

@implementation DongTaiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"5.动态添加方法";
    self.view.backgroundColor = [UIColor whiteColor];
    
    people *p  =[[people alloc]init];
    [p performSelector:@selector(eat)];
    
    [p performSelector:@selector(eat:) withObject:@"吃东西"];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
